﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web
{
    public partial class show : System.Web.UI.Page
    {
        int id;
        public study.Model.tb_topic_list toplist = new study.Model.tb_topic_list();
        study.BLL.tb_topic_list toplistbll = new study.BLL.tb_topic_list();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Session["MENU_SELECTED"] = 3;
                if (Request.QueryString["id"] == null)
                    Response.Redirect("showtopic.aspx");
                id = Convert.ToInt32(Request.QueryString["id"]);
                toplist = toplistbll.GetTypeModel(id);
                this.Title = toplist.title;
                if (toplist == null)
                    Response.Redirect("showtopic.aspx");
            }
        }
    }
}